package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CItemAttackMessage extends AbstractS2CMessage {
	String playerId;
	short itemId;

	public S2CItemAttackMessage(String playerId, short damage) {
		this.playerId = playerId;
		this.itemId = damage;
	}

	@Override
	protected void writeMessage() {
		writeString(playerId);
		writeShort(itemId);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_ITEM_ATTACK;
	}

}
